---@diagnostic disable: undefined-global
--在没有安装packer的电脑上，自动安装packer插件
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
--local install_path =~/.config/nvim/plugged
--local install_path =/Users/addzero/.config/nvim/plugged

--/Users/addzero/.local/share/nvim/site/pack/packer/start

if fn.empty(fn.glob(install_path)) > 0 then
	 --fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})	--默认地址
	fn.system({'git', 'clone', '--depth', '1', 'https://codechina.csdn.net/mirrors/wbthomason/packer.nvim.git', install_path})	--csdn加速镜像
	vim.cmd 'packadd packer.nvim'
end
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require('packer').startup({

function()
use 'wbthomason/packer.nvim'-- Packer can manage itself
-- 美化状态栏
use 'https://gitee.com/botty_mirrors/lightline.vim'
-- 启动界面
use  'https://gitee.com/zgpio/vim-startify'
-- 注释
use  'https://gitee.com/yanzhongqian/nerdcommenter'
--高亮复制内容
use  'https://gitee.com/tianyunchong/vim-highlightedyank'
--多光标多行修改
use  'https://gitee.com/oy456xd/vim-visual-multi'
--替换
use  'https://gitee.com/linuor/vim-surround'
--对齐
use  'https://gitee.com/linuor/tabular'
--格式化表格
use 'https://gitee.com/yaozhijin/vim-table-mode'
--coc补全
use({ 
        "https://gitee.com/zimingzpp/coc.nvim",
		branch = "master",
        run = "yarn install --frozen-lockfile",
 })
--use ["https://gitee.com/zimingzpp/coc.nvim"] = {
		--branch = "master",
		--run = "yarn install --frozen-lockfile",}
end,
	config = {
		max_jobs = 16,
		git = {
			default_url_format = 'htps://hub.fastgit.org/%s'
		},
		display = {
			open_fn = function()
				return require('packer.util').float({ border = 'single' })
			end
		}
	}
})
